package com.zz.parkingsystem.service.impl;

import com.zz.parkingsystem.dto.InsFeedbackDTO;
import com.zz.parkingsystem.dto.UserFeedbackDTO;
import com.zz.parkingsystem.mapper.InsFeedbackMapper;
import com.zz.parkingsystem.mapper.UserFeedbackMapper;
import com.zz.parkingsystem.service.PCFeedBackService;
import com.zz.parkingsystem.vo.InsFeedbackVO;
import com.zz.parkingsystem.vo.UserFeedbackVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PCFeedBackServiceImpl implements PCFeedBackService {
    @Autowired
    private UserFeedbackMapper userFeedbackMapper;
    @Autowired
    private InsFeedbackMapper insFeedbackMapper;

    @Override
    public List<UserFeedbackVO> queryAllUserFeedBack(UserFeedbackDTO userFeedbackDTO) {
        return userFeedbackMapper.queryAllUserFeedBack(userFeedbackDTO);
    }

    @Override
    public Long getUserFBCount(UserFeedbackDTO userFeedbackDTO) {
        return userFeedbackMapper.getUserFBCount(userFeedbackDTO);
    }

    @Override
    public List<InsFeedbackVO> queryAllInsFB(InsFeedbackDTO insFeedbackDTO) {
        return insFeedbackMapper.queryAllInsFB(insFeedbackDTO);
    }

    @Override
    public Long getInsFBCount(InsFeedbackDTO insFeedbackDTO) {
        return insFeedbackMapper.getInsFBCount(insFeedbackDTO);
    }
}
